﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="admin_index" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>浙商黄页网站管理中心</title>
    <link rel="Stylesheet" href="skin/Style.css" type="text/css" />

    <script type="text/javascript" src="../js/jquery-min.js"></script>

    <script language="javascript" type="text/javascript">
    function notepad(){
        $.ajax({
		        type: "post",
		        url: "http://"+top.location.host+"/Control/Ajax.ashx",
		        data: "id=11&content="+$("#noteContent").attr("value"),
		        beforeSend: function(){
		    },
		    success: function(msg){
		    },
		    error: function(XMLHttpRequest, textStatus, errorThrown){
			    alert(XMLHttpRequest.responseText);
		    }
	    });
    }
    
    function MenuSkin(str)
    {   
      document.getElementById("ShowInfo").firstChild.nodeValue="   您现在的位置： 后台首页 >> "+str.title;  
    }
    var status = 1;
    function notepadHidd(){
        if($("#divNotepad").attr("visible")=="true"){
            $("#divNotepad").slideDown("fast");
            $("#divNotepad").attr("visible","false")
        }else {
            $("#divNotepad").slideUp("fast");
            $("#divNotepad").attr("visible","true") 
        } 
        
    }

<!--

        //预先导入图片函数,往往是mouseover时候显示的图片

        function MM_preloadImages() { //v3.0
            var d = document; if (d.images) {
                if (!d.MM_p) d.MM_p = new Array();
                var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
                    if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
            }
        }

        //图片还原,当你把鼠标移动到图片,转换为另外一张图片,但是鼠标移开后要还原为原先那张图片.

        function MM_swapImgRestore() { //v3.0
            var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
        }

        function MM_findObj(n, d) { //v4.01
            var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
                d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
            }
            if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
            for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
            if (!x && d.getElementById) x = d.getElementById(n); return x;
        }

        //图片转换函数,鼠标移动到图片时候,要进行图片转换.

        function MM_swapImage() { //v3.0
            var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
                if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
        }

        function switchSysBar() {
            if (document.getElementById("frmTitle").style.display != "none") { // ？门开着
                document.getElementById("frmTitle").style.display = "none"; // 把门关上！
                MM_swapImage('img1', '', 'images/left.gif', 1); // 换门牌图“拉开”
            } else {
                document.getElementById("frmTitle").style.display = ""; // 拉开门
                MM_swapImgRestore(); // 换门牌图“关上”
            }
        }
//-->
</script>
</head>
<body class="botten">

    <form id="form1" runat="server">
    <div id="divNotepad" style=" height:150px;position:absolute; z-index:0; top: 120px; right:-1px; display:none" visible="true"><textarea id="noteContent" style="width:350px; height:150px;" rows="10" cols="60" onBlur="notepad()" runat="server"></textarea></div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="height: 100%">
            <tr>
                <td colspan="3">
                    <div id="main_top">
                        <div class="logo">
                            <img src="images/admin_LOGO.gif" width="349" height="85" alt=""></div>
                        <div class="nav_chak">
                            <div class="wecome">
                                <asp:Label ID="lblGreeting" runat="server"></asp:Label>
                                | <a href="/" target="_blank"><span style="color: #444">网站首页</span></a> | <span onClick="notepadHidd()" style=" cursor: hand;">备忘录ddd</span> |
                                <asp:LinkButton ID="lbtnSignOut" runat="server" OnClick="lbtnSignOut_Click">退出</asp:LinkButton></div>
                            <div class="guidan">
                                <ul>
                                    <li><a href="Left/Basic.htm" target="left" title="常规管理" onClick="MenuSkin(this)"
                                        id="a1"><span>常规管理</span></a></li>
                                    <li><a href="Left/Column.htm" target="left" title="栏目管理" onClick="MenuSkin(this)"
                                        id="a2"><span>栏目管理</span></a></li>
                                    <li><a href="Left/User.htm" target="left" title="会员管理" onClick="MenuSkin(this)" id="a4">
                                        <span>会员管理</span></a></li>
                                    <li><a href="Left/Template.htm" target="left" title="模板风格" onClick="MenuSkin(this)"
                                        id="a5"><span>模板风格</span></a></li>
                                    <li><a href="Left/System.htm" target="left" title="系统设置" onClick="MenuSkin(this)"
                                        id="a6"><span>系统设置</span></a></li>
                                </ul>
                            </div>
                            <div class="clr">
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td rowspan="2" id="frmTitle" style="width: 175px">
                    <div id="siting">
                        <ul>
                            <li><a href="index_center.aspx" target="right" style="text-decoration: none"><font
                                color="#FFFFFF">管理首页</font></a></li>
                            <li class="bg"></li>
                            <li>
                                <asp:LinkButton ID="btn" runat="server" OnClick="lbtnSignOut_Click" ForeColor="White"
                                    Style="width: 83px; text-decoration: none">安全退出</asp:LinkButton></li>
                        </ul>
                    </div>
                    <div class="clr">
                    </div>
                    <iframe frameborder="0" id="frmleft" name="left" src="left/Basic.htm" class="left_iframe"
                        allowtransparency="true"></iframe>
                </td>
                <td rowspan="2" class="Rises" style="width: 10px">
                    <div onclick="switchSysBar()">
                        <span class="navpoint" id="switchPoint" title="关闭/打开左栏">
                            <img src="images/right.gif" alt="" width="9" height="23" id="img1"/></span></div>
                </td>
                <td style="width: 100%">
                    <div class="position" id="ShowInfo">
                        &nbsp;&nbsp;您现在的位置： 后台首页 >> 常规管理</div>
                </td>
            </tr>
            <tr>
              <td valign="top" style="width: 100%; height: 100%">
                    <iframe class="main_iframe" id="frmright" name="right" src="index_center.aspx" frameborder="0"
                        scrolling="yes"></iframe>
                </td>
            </tr>
        </table>
        
    </form>

</body>
</html>
